---
# System prepended metadata

title: Nitish Kumar

---

# Nitish Kumar

- Nodejs, AngularJS
- SQL
- AWS - EC2, 


# Question 1: Find the 2nd largest number in an integer array.
```cpp=
// logic
#include<bits/stdc++.h>
1 - 4 -5 7 9 6

int secoundLargest(int* arr, int n){
    int first_max = INT_MIN;
    int secMax = INT_MIN;
    for(int i=0; i<n; i++){
        first_max = max(arr[i], first_max);
        if(arr[i]!=first_max){
             secMax = max(arr[i], secMax);
        }
       
    }
    
    
    
    // for(int i=0; i<n; i++){
    //     if(arr[i]==first_max){
    //         continue;
    //     }
    //     secMax = max(arr[i], secMax);
    // }
    return secMax;


```


# Question 2: 

-> placing an order, send sms to customer after exact 2 hrs

1:32 ->  3:32
1:33 ->  3:33
2:01 ->  4:01


fun 