There's a group of people sitting in a row of seats. Each seat can hold only one person. Your goal is to arrange the people so they're all sitting together and there are no empty seats between people. You are given a String[] s representing the row of seats from left to right. The i^{th} element of s is '.' if the i^{th} seat is empty and uppercase 'X' if it's occupied. Each seat is one unit of length wide. There is no space between adjacent seats.
The distance that one person needs to travel to relocate from the i^{th} seat to the j^{th} seat is the absolute value of (i  j) units. Return the minimum possible total distance in units that the people must travel in order to achieve your goal.
