Solution for Hash Attack lab in BYU CS 465