Function to return the minimum number of trials needed in the worst case with n eggs and k floors
int eggDrop ( int n , int k ) { vector < vector < int > > dp ( k + 1 , vector < int > ( n + 1 , 0 ) ) ; int x = 0 ;