Pregunta de entrevista de Lendbuzz

Contains Duplicate LC question on coderpad