Completed problem 62

Signed-off-by: Anuvrat Singh <anuvrat@amazon.com>