Best Question solution for Javascript