Solve question 50
Merge remote-tracking branch 'pivlano/q50-solution'
Improve question 50 solution