CompatibL interview question

Nothing too dificult