Hackerrank Attribute Parser Solution Definition Math