Zensar Technologies Interview Question

Basic C or Cpp code was asked. Finding larges number in string