added Andy Yee's solution.

added Andy Yee's solution.
Merge pull request #262 from ayblu/master

added Andy Yee's solution.