/**
 *
 * @author Manan Upadhyay
 * Email: mupadhya@usc.edu
 * GitHub: https://github.com/MananUpadhyay
 * class: Solution, Solution to Quora's Nearby Challenge.
 *
 */
import java.util.Scanner;
import java.io.BufferedWriter;
import java.io.FileWriter;

public class Solution {
    public static void main(String[] args) throws Exception {
   
        Quora q = new Quora();
        q.readUserInput();
        // q.readInputFile(inputFile);
        System.out.println("Output: ");
        for (int i = 0; i < q.QUERY_COUNT; i++) {
            q.solveQuery(Quora.mQuery[i]);
        }
    }
    
}

@@ -375,16 +375,19 @@
 %0A       
+ //
  q.readU
@@ -402,26 +402,121 @@
 ();%0A        
-//
+%0A        // get the file passed in as an argument... %0A        String inputFile = args%5B0%5D;%0A       
  q.readInput
@@ -532,16 +532,25 @@
 tFile);%0A
+        %0A
         
@@ -581,16 +581,25 @@
 ut: %22);%0A
+        %0A
         

Update Solution.java