Create CodeForce474B.Java

Accepted solution