FDM Group interview question

Basic algorithmic problems, where you talk through how to solve the problem