Agilysys Interview Question

convert binary to hexadecimal without using defined function