updated problem 20 implementation

Signed-off-by: Nicholas Bevacqua <videogamerz400@gmail.com>