Python Re Group Groups Groupdict Hackerrank Solution Python