Solution for reddit's r/dailyprogramming #184 Easy (http://www.reddit.com/r/dailyprogrammer/comments/2j5929/10132014_challenge_184_easy_smart_stack_list/)