Added Solution 2 and Edited Solution 1