Babbel interview question

How to build perfect API