Solved problem 24.
Fixed a bug that number can be duplicate.
Removed redundant 'do'.
Solved problem 25.
Used splitAt instead of take and drop.
Solved problem 26.