Durafit interview question

College final year project and general interview question