Explanation:
Explanation is in the attachment
hope it is helpful to you ☺️
Personal pronouns, "I, I'm, I'll I'd" etc. must be capitalised. As for the middle of a sentence, I'm contains "I" and so therefore it is capitalised.
C t think I hope this helps