Question 1192688
.


If you don't care about quality of the solution, you may accept it from the Theo's post.


But if you will come to a respectful company for an interview and if they will give you a similar problem,


then, if you solve it in that way, they will fail you.