Fixed solution for 100th problem