How do I figure out programming/ coding is not for me? I literally took more than an hour or so to write a simple program on printing unique characters from a string in java.
It made me wonder whether I can really be good at coding someday or will I always be like this. 
Will daily practice and experience eventually make me better at this? 
I just feel like quitting because I take so much time to solve questions.
How do I figure it out whether I'll be ever good at this or not? Or should I keep going and one day I'll be good ?