Source: https://www.teachme.edu.vn/9za_change-binary-to-octal-exercise_oA5euSr.pdf