first we decompose the problem we want the robot to give you tea first we know where you and the robot is and we know what you are wearing and if there is tea ready
next we recognise the patterns like where you usually sit this is called pattern recognision
now we need to remove unesacary information this is called abstarction like we dont need to know what you are wearing just where you and the robot are
now lets do some algorithmic thinking first we want the robot to move to you we know where you and the robot is so that should be easy there should b a place is where tea will be kept so the robot will go there first then to you and finaly you will get your tea
finally if anything went wrong you can go back and check if you did anything wrong and fix it by debugging like if you put that if you wear a red shirt the robot wont give you tea you can go back and fix it now you can start coding the robot i will help you