Lendbuzz interview question

Contains Duplicate LC question on coderpad