Question d’entretien chez Carnegie Robotics

C++ questions: How to calculate distance between two 3D points in C++. Find the length of longest contiguous sublist in a list of integers along with the starting index of that list.