Amazon interview question

Solve XX in code on whiteboard