tringapps interview question

1 lengthy coding question