Axcelerate interview question

explain about how did you solve the coding challenge