I accidentally locked my father's cat in a room without food or water for 2 days
Was your reason because you do not like the cat?
No, my mind was just flooded at the time.
It is good to learn from past mistakes. People should prioritize health and safety of their pets if they are feeling really distracted to prevent accidents.
I'll never do it again.
Hopefully it does not happen again as I am sure that is pretty dangerous for the cat. It is great that you understand you made a mistake though! Sounds like you truly understand that you need to correct that error.