Nearest Special Number Offsets

Company: flipkart grid_20thjuly

Difficulty: medium