Pergunta de entrevista da empresa Deloitte

A DSA problem to flip every array element removing trailing zeros and printing the original elements with the maximum reversed difference.