Home

Awesome

Code Challenge

The assessment proposal which we'll develop together is provide a person with the loan types suitable for her, given some variables:

We must provide the following loan types:

Listed below are the business rules for conceding a loan based on the person's profile:

Personal LoanCollateralized LoanPayroll
Income <= 3000YesYes***No
Income > 3000 & < 5000YesYes**No
Income => 5000YesYes*Yes

App usage:

The application must receive the following data as input:

input
{
  "customer": {
    "name": "Erikaya",
    "cpf": "123.456.789-10",
    "age": 29,
    "location": "SP",
    "income": 3000
  }
}

For the sake of simplicity, consider we'll always receive the correct data (types and formats)

And must respond the following data:

output
{
  "customer": "Erikaya",
  "loans": [
    {
      "type": "personal",
      "taxes": 1
    }
  ]
}

Before the interview

During the interview

After the interview

Setup

Run the tests

You may execute the following command via CLI:

$ ./gradlew test

If tests are failing, then you succeeded. Fear nothing!

Now it's all about coding.

Good luck!