* Explained solution and added alternate Explained why the solution works and added an alternate, less elegant solution for comparison. * Removed last line per feedback