Pergunta de entrevista da empresa Givelify

Maximum length of subset that can be formed with equal difference between consecutive elements