IDFC FIRST Bank Interview Question

They asked a coding question