Imam and follower stand on the same side; the follower is closer. What is the ruling?

Prayer in, Around, and on the Roof of the Kaaba