LTM Limited interview question

Best practise for good API