RTX interview question

Where are the logic flaws given this code?

Interview Answer

Anonymous

May 18, 2017

Watch out for obvious things that one would assume were already taken care of ie. is there a variable to actually store the results?