First solved cpp prog on code force