Infosys Interview Question

Nothing was difficult as such but just practice a little math.