SRM 322 Div2 250 : simple iteration 

Signed-off-by: Syed <syed1.mushtaq@gmail.com>