Added solution for Time problem(SRM144 DIV2 200)