You have to take 3 board exams. Step 1, 2 and 3. Step 1 is the hardest exam and consists mostly of theory. Since you are an international you have to score at least average on this exam to have a chance at residency and likely higher for a good chance or for something more competitive.
I have no idea how to get residency in the UK though.