Resolve second kata

I don´t sure that is the best option