added Andy Yee's solution.

added Andy Yee's solution.