aiqfome Interview Question

Design an specific algorithm.