Amazon interview question

Find the bug in the following code.

Interview Answer

Anonymous

28 Apr 2021

Look through the code and fix all bugs to get the correct output, it was usually some simple syntax error.