Project Euler 162 - Hexadecimal Num

Official link: https://projecteuler.net/problem=162