Second solution
Third solution